﻿using System.Collections.Generic;

static public class AddressablesDict
{
    static private Dictionary<string, string> dict = new Dictionary<string, string>();

    static public void LaunchRun()
    {

    }

    static AddressablesDict()
    {
        Init();
    }

    static private void Add(string key, string value)
    {
        dict.Add(key, value);
    }

    static public string GetAddressable(string key)
    {
        if (dict.ContainsKey(key))
        {
            return dict[key];
        }
        return null;
    }

    static public void Init()
    {
        //字体
        Add("SIMLI", "Assets/GameAssets/Fonts/SIMLI.TTF");
        //图集
        Add("ChessPieces", "Assets/GameAssets/Textures_SD/ChessPieces.spriteatlas");
        //小图
        Add("hei_che", "Assets/GameAssets/Textures_SD/ChessPieces/hei_che.png");
        Add("hei_jiang", "Assets/GameAssets/Textures_SD/ChessPieces/hei_jiang.png");
        Add("hei_ma", "Assets/GameAssets/Textures_SD/ChessPieces/hei_ma.png");
        Add("hei_pao", "Assets/GameAssets/Textures_SD/ChessPieces/hei_pao.png");
        Add("hei_shi", "Assets/GameAssets/Textures_SD/ChessPieces/hei_shi.png");
        Add("hei_xiang", "Assets/GameAssets/Textures_SD/ChessPieces/hei_xiang.png");
        Add("hei_zu", "Assets/GameAssets/Textures_SD/ChessPieces/hei_zu.png");
        Add("hong_bing", "Assets/GameAssets/Textures_SD/ChessPieces/hong_bing.png");
        Add("hong_che", "Assets/GameAssets/Textures_SD/ChessPieces/hong_che.png");
        Add("hong_ma", "Assets/GameAssets/Textures_SD/ChessPieces/hong_ma.png");
        Add("hong_pao", "Assets/GameAssets/Textures_SD/ChessPieces/hong_pao.png");
        Add("hong_shi", "Assets/GameAssets/Textures_SD/ChessPieces/hong_shi.png");
        Add("hong_shuai", "Assets/GameAssets/Textures_SD/ChessPieces/hong_shuai.png");
        Add("hong_xiang", "Assets/GameAssets/Textures_SD/ChessPieces/hong_xiang.png");

        Add("hei_dan", "Assets/GameAssets/Textures_SD/ChessPieces/hei_dan.png");
        Add("hei_gou", "Assets/GameAssets/Textures_SD/ChessPieces/hei_gou.png");
        Add("hei_wei", "Assets/GameAssets/Textures_SD/ChessPieces/hei_wei.png");
        Add("hong_shu", "Assets/GameAssets/Textures_SD/ChessPieces/hong_shu.png");
        Add("lan_bing", "Assets/GameAssets/Textures_SD/ChessPieces/lan_bing.png");
        Add("lan_che", "Assets/GameAssets/Textures_SD/ChessPieces/lan_che.png");
        Add("lan_ma", "Assets/GameAssets/Textures_SD/ChessPieces/lan_ma.png");
        Add("lan_pao", "Assets/GameAssets/Textures_SD/ChessPieces/lan_pao.png");
        Add("lan_shi", "Assets/GameAssets/Textures_SD/ChessPieces/lan_shi.png");
        Add("lan_wu", "Assets/GameAssets/Textures_SD/ChessPieces/lan_wu.png");
        Add("lan_xiang", "Assets/GameAssets/Textures_SD/ChessPieces/lan_xiang.png");
        Add("hei_xie", "Assets/GameAssets/Textures_SD/ChessPieces/hei_xie.png");
        Add("hei_dun", "Assets/GameAssets/Textures_SD/ChessPieces/hei_dun.png");

        Add("kong_kong", "Assets/GameAssets/Textures_SD/EmptyPiece/kong_kong.png");
        Add("button1", "Assets/GameAssets/Textures_SD/Function/button1.png");
        Add("circle", "Assets/GameAssets/Textures_SD/Function/circle.png");
        //大图
        Add("background1", "Assets/GameAssets/Textures_HD/Background/background1.png");
        Add("background2", "Assets/GameAssets/Textures_HD/Background/background2.png");
        Add("chessboard", "Assets/GameAssets/Textures_HD/ChessBoard/chessboard.png");
        Add("threekingdoms_chessboard", "Assets/GameAssets/Textures_HD/ChessBoard/threekingdoms_chessboard.png");
        //预制体
        Add("EmptyChessPiece", "Assets/GameAssets/Prefabs/ChessRelated/EmptyChessPiece.prefab");
        Add("SelectCampPanel", "Assets/GameAssets/Prefabs/ChessRelated/SelectCampPanel.prefab");
        Add("SelectPlayPanel", "Assets/GameAssets/Prefabs/ChessRelated/SelectPlayPanel.prefab");
        Add("StandardChessBoard", "Assets/GameAssets/Prefabs/ChessRelated/StandardChessBoard.prefab");
        Add("ConfirmPanel", "Assets/GameAssets/Prefabs/Public/ConfirmPanel.prefab");
        Add("TKChessPiece", "Assets/GameAssets/Prefabs/ChessRelated/TKChessPiece.prefab");
        Add("ThreeKingdomsChessBoard", "Assets/GameAssets/Prefabs/ChessRelated/ThreeKingdomsChessBoard.prefab");
        Add("TKSelectCampPanel", "Assets/GameAssets/Prefabs/ChessRelated/TKSelectCampPanel.prefab");
    }
}